package com.mixue.config;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class MvcConfig extends WebMvcConfigurationSupport {
    //设置资源映射
    @Override
    protected void addResourceHandlers(ResourceHandlerRegistry registry) {
//        资源处理器
        registry.addResourceHandler("/back/**").addResourceLocations("classpath:/back/");
        registry.addResourceHandler("/front/**").addResourceLocations("classpath:/front/");
    }


}